package com.example.phoenixshop.bean;

import java.math.BigDecimal;
import java.util.Date;

public class Good {
    /**
     * 货架id
     */
    private Long id;
    /**
     * 货架号
     */
    private String goodsShelf;
    /**
     * 卖家id
     */
    private Long sellerId;
    /**
     * 书籍名称
     */
    private String name;
    /**
     * 作者名称
     */
    private String author;
    /**
     * 书籍类型
     */
    private String type;
    /**
     * 单价
     */
    private BigDecimal unitPrice;
    /**
     * 库存量
     */
    private Integer stock;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    public Good(Long id, String goodsShelf, Long sellerId, String name, String author, String type, BigDecimal unitPrice, Integer stock, Date createTime, Date updateTime) {
        this.id = id;
        this.goodsShelf = goodsShelf;
        this.sellerId = sellerId;
        this.name = name;
        this.author = author;
        this.type = type;
        this.unitPrice = unitPrice;
        this.stock = stock;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Good() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsShelf() {
        return goodsShelf;
    }

    public void setGoodsShelf(String goodsShelf) {
        this.goodsShelf = goodsShelf == null ? null : goodsShelf.trim();
    }

    public Long getSellerId() {
        return sellerId;
    }

    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}